//
//  RootViewController.h
//  XRLoopSegmentControl
//
//  Created by TQS on 15/4/11.
//  Copyright (c) 2015年 寒竹子. All rights reserved.
//

/**
 * @brief  XRSegmentNavigation 视图切换导航控制器 (V2.0)
 *
 * @date   2015-04-22 22:10:34
 * @author 寒竹子
 */

typedef void(^CallBackBlock)(NSInteger index);

#import <UIKit/UIKit.h>

@interface XRSegmentNavigation : UIViewController

@property (nonatomic, strong) UIFont * textFont;
@property (nonatomic, strong) UIColor * normalColor;
@property (nonatomic, strong) UIColor * selectedColor;
@property (nonatomic, strong) UIImage * image;
@property (nonatomic, assign) CGFloat barHeight;
@property (nonatomic, strong) UIColor * backgroundColor;
@property (nonatomic, assign) NSInteger defaultIndex;

@property (nonatomic,strong) NSArray *items;

@property (nonatomic, copy) CallBackBlock myBlock;

- (instancetype)initWithViewControllers:(NSMutableArray *)viewControllers titles:(NSArray *)titles callBlock:(CallBackBlock)myBlock;

@end
